package com.zmj.sy.mom.srv.aps.feign;

import com.zmj.sy.mom.srv.aps.bean.dto.feign.sinocam.SinoCamCommonsResDto;
import com.zmj.sy.mom.srv.aps.bean.dto.feign.sinocam.SinoCamPushLoftReqDto;
import com.zmj.sy.mom.srv.aps.bean.dto.feign.sinocam.SinoCamPushPlanReqDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 卓昌   已经废除
 */
@FeignClient(url = "http://172.31.3.108:5000", name = "sinoCamApiClient")
public interface SinoCamApiClient {

    /**
     * API-001 推送零件图纸
     *
     */
    @PostMapping("/api/SinoCAM/PushNestLofting")
    SinoCamCommonsResDto pushNestLofting(@RequestBody List<SinoCamPushLoftReqDto> reqDtoList);

    /**
     * API-002 推送套料计划接口
     */
    @PostMapping("/api/SinoCAM/PushNestPlan")
    SinoCamCommonsResDto pushNestPlan(@RequestBody List<SinoCamPushPlanReqDto> reqDtoList);

}
